//
//  CollecListDataTool.m
//  LoveTravel
//
//  Created by MS on 16-1-22.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "CollecListDataTool.h"

@implementation CollecListDataTool
+(void)getCollectionListDataWithId:(NSInteger)id_collection Succuss:(void(^)(CollecListModel * data))succuss failure:(void (^)( NSError *error))failure
{
    NSString * url = CollecList_URL(id_collection);
    
    [LGHttpTool GET:url parameters:nil success:^(id responseObject) {
        
        CollecListModel * data = [CollecListModel mj_objectWithKeyValues:responseObject];
       
        if (succuss) {
            succuss(data);
        }
        
    } failure:^(NSError *error) {
        if (failure) {
            failure(error);
        }
    }];
    
}
@end
